Repository navigation
Upper bound from the verified start vector of a candidate generator - #70
Merged
Merged
Conversation
…uire that vector to be stationary The reproduction check runs from the model's start vector (the search's weights), while state_entropy() recomputes a stationary vector. On a reducible model, such as one that keeps a near-zero-weight absorbing state, the two differ: the 2026-11-15 rebracket run reported C_g <= 0 on a process with E = 0.198. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
`_try_best_candidate` checks a candidate's word process from the model's start vector (the search weights), but took the upper bound from `model.state_entropy()`, which recomputes a stationary vector. On a reducible model these can differ. `_model_from_kernel` keeps every state with weight above `1e-9`, so a near-zero-weight absorbing state is enough.
This happened in the cpfci dataset. On `((0,1),(0,2),(0,0))`, draw 4, the pipeline returned `upper = 0.0` with reproduction error `1e-7`, although the process has excess entropy 0.198. The stationary solve picked the absorbing state.
Fix
Test
`test_upper_is_the_entropy_of_the_verified_start_vector` uses a golden-mean generator plus an absorbing state of weight `1e-7`. It fails without the fix.
Made with Cursor